package com.example.dao;

import com.example.entity.User;

public interface UserDao {

    //根据id查询用户信息
    User queryUserById(Long id);

    User queryUserByUsername(String username);

    User loginUser(String userName, String password);

    boolean registerUser(String nickname, String username, String password, String email);


    /**
     * 头条号完善信息
     * 根据用户id更新用户信息
     * @param user
     * @return
     */
    int updateUserById(User user);

    User queryUserByNameEmail(String username, String email);


}
